GtkFileChooser: Make local-only default to FALSE
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Nov 2016 14:06:57 +0000 (09:06 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Nov 2016 14:06:57 +0000 (09:06 -0500)
There is no good reason anymore to default to TRUE, and this
default only makes applications miss out on useful functionality.

gtk/gtkfilechooser.c
gtk/gtkfilechooserentry.c
gtk/gtkfilechooserwidget.c

index 0a27b9ce4cf932de28102b68011e5e5c83355476..35de3b3c28b150ffe8dfe8d89b035c3269dc169b 100644 (file)
@@ -387,7 +387,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
                                       g_param_spec_boolean ("local-only",
                                                             P_("Local Only"),
                                                             P_("Whether the selected file(s) should be limited to local file: URLs"),
-                                                            TRUE,
+                                                            FALSE,
                                                             GTK_PARAM_READWRITE));
   g_object_interface_install_property (iface,
                                       g_param_spec_object ("preview-widget",
index 0805b13927e67a517030d9f3d4b39467d53e790c..cc6e119d2ae71a3423313d19cccc95aab98dab99 100644 (file)
@@ -185,7 +185,7 @@ _gtk_file_chooser_entry_init (GtkFileChooserEntry *chooser_entry)
   GtkEntryCompletion *comp;
   GtkCellRenderer *cell;
 
-  chooser_entry->local_only = TRUE;
+  chooser_entry->local_only = FALSE;
 
   g_object_set (chooser_entry, "truncate-multiline", TRUE, NULL);
 
index c323cb8ca953725f188a0fdbe573c7a5b87aa4d1..6a270ff1961f1e9dd29707b62dfccfbceec21546 100644 (file)
@@ -8622,7 +8622,7 @@ gtk_file_chooser_widget_init (GtkFileChooserWidget *impl)
   impl->priv = gtk_file_chooser_widget_get_instance_private (impl);
   priv = impl->priv;
 
-  priv->local_only = TRUE;
+  priv->local_only = FALSE;
   priv->preview_widget_active = TRUE;
   priv->use_preview_label = TRUE;
   priv->select_multiple = FALSE;